body {
    background-color: #f5f5f5;
}

/*主体盒子*/
.hm_layout {
    position: relative;
    width: 100%;
    max-width: 640px; /*设计图的原因，不让它放大*/
    min-width: 300px; /*更好的布局*/
    margin: 0 auto;
}

/*头部搜索*/
.hm_header {
    position: fixed; /*是以window 最外层容器计算*/
    left: 0;
    top: 0;
    height: 40px;
    width: 100%;
    z-index: 1000;
    /*background-color: red;*/
}

.hm_header > .hm_header_box {
    position: relative;
    width: 100%;
    max-width: 640px; /*设计图的原因，不让它放大*/
    min-width: 300px; /*更好的布局*/
    margin: 0 auto;
    background: rgba(201, 21, 35, 0); /*透明度在动态js中设置*/
    height: 40px;
}

.hm_header > .hm_header_box > .icon_logo {
    position: absolute;
    top: 4px;
    left: 10px;
    width: 60px;
    height: 36px;
    background-position: 0 -103px;
}

.hm_header > .hm_header_box > form {
    position: relative;
    width: 100%;
    height: 40px;
    padding-left: 75px;
    padding-right: 50px;
}

.hm_header > .hm_header_box > form > input {
    width: 100%;
    height: 30px;
    border-radius: 15px;
    margin-top: 5px;
    padding-left: 30px;
}

.hm_header > .hm_header_box > form > .icon_search {
    position: absolute;
    top: 10px;
    left: 85px;
    height: 20px;
    width: 20px;
    background-position: -60px -109px;
}

.hm_header > .hm_header_box > .login {
    position: absolute;
    right: 0;
    top: 0;
    width: 50px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    color: #fff;
    font-size: 15px;
}

/*轮播图*/
.hm_banner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hm_banner > ul:first-child {
    width: 1000%;
    -webkit-transform: translateX(-10%); /*尽可能的做webkit内核的兼容*/
    transform: translateX(-10%);
}

.hm_banner > ul:first-child > li {
    float: left;
    width: 10%;
}

.hm_banner > ul:first-child > li > a {
    display: block;
    width: 100%;
}

.hm_banner > ul:first-child > li > a > img {
    display: block;
    width: 100%;
}

.hm_banner > ul:last-child {
    width: 118px;
    height: 6px;
    position: absolute;
    bottom: 6px;
    left: 50%;
    margin-left: -59px;
}

.hm_banner > ul:last-child > li {
    width: 6px;
    height: 6px;
    float: left;
    border-radius: 3px;
    border: 1px solid #fff;
    margin-left: 10px;
}

.hm_banner > ul:last-child > li.now {
    background: #fff;
}

.hm_banner > ul:last-child > li:nth-child(1) {
    margin-left: 0;
}

/*导航栏*/
.hm_nav {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.hm_nav > ul {
    width: 100%;
    padding: 10px 0;
}

.hm_nav > ul > li {
    width: 25%;
    float: left;
}

.hm_nav > ul > li > a {
    display: block
}

.hm_nav > ul > li > a > img {
    width: 40px;
    height: 40px;
    display: block;
    margin: 0 auto;
}

.hm_nav > ul > li > a > p {
    text-align: center;
    color: #666;
    font-size: 12px;
    padding: 6px 0;
}

/*商品主盒子*/
.hm_product {
    padding: 0 5px;
}

.hm_product > .product_box {
    width: 100%;
    background: #fff;
    margin-top: 10px;
    box-shadow: 0 0 1px #e0e0e0;
}

.hm_product > .product_box > .product_box_tit {
    height: 32px;
    line-height: 32px;
    border-bottom: 1px solid #e0e0e0;
}

.hm_product > .product_box > .product_box_tit .no_border {
    border-bottom: none;
}

.hm_product > .product_box > .product_box_tit > h3 {
    font-weight: normal;
    font-size: 15px;
    padding-left: 20px;
    position: relative;
    color: #666;
}

.hm_product > .product_box > .product_box_tit > h3::before {
    /*display: block;position: absolute;float: left;*/
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    width: 3px;
    height: 12px;
    background: #d8505c;
}

/*掌上秒杀*/
.hm_sk {

}

.hm_sk .sk_icon {
    background: url("../images/images/seckill-icon.png") no-repeat;
    background-size: 16px 20px;
    width: 16px;
    height: 20px;
    float: left;
    margin-top: 6px;
}

.hm_sk .sk_name {
    color: #d8505c;
    font-size: 15px;
    float: left;
}

.hm_sk .sk_time {
    float: left;
    margin-top: 8px;
}

.hm_sk .sk_time > span {
    float: left;
    width: 15px;
    height: 15px;
    line-height: 15px;
    text-align: center;
    background: #333;
    color: #fff;
    margin-left: 3px;
}

.hm_sk .sk_time > span:nth-child(3n) {
    background: #fff;
    color: #333;
    width: 5px;
}

.hm_sk .product_box_con > ul {
    width: 100%;
    font-size: 12px;
    padding: 10px 0;
}

.hm_sk .product_box_con > ul > li {
    width: 33.333%;
    float: left;
    text-align: center;
}

.hm_sk .product_box_con > ul > li > a {
    display: block;
    width: 100%;
    border-right: 1px solid #e0e0e0;
}

.hm_sk .product_box_con > ul > li:last-child > a {
    border-right: 0;
}

.hm_sk .product_box_con > ul > li > a > img {
    width: 64%;
    display: block;
    margin: 0 auto;
}

/*
   E:first-of-type   选择E类同类型的同级第一个元素
   E:last-of-type    选择E类同类型的同级最后一个元素
   E:nth-of-type(n)   选择E类同类型的同级的第n个元素
*/
.hm_sk .product_box_con > ul > li > a > p:first-of-type {
    color: #d8505c;
    padding-top: 5px;
}

.hm_sk .product_box_con > ul > li > a > p:last-of-type {
    text-decoration: line-through; /*删除线*/
    color: #666;
    padding-top: 5px;
}

/*组合样式*/
.w_50 {
    width: 50%;
    display: block;
}

.w_50 > img {
    display: block;
    width: 100%;
}

.b_left{
    border-left: 1px solid #e0e0e0;
}

.b_right{
    border-right: 1px solid #e0e0e0;
}

.b_bottom{
    border-bottom: 1px solid #e0e0e0;
}